package com.masq.common.exception;

import com.masq.common.enums.ErrorResult;

/**
 * @author masq
 * @since 2025-06-29
 */
public class ServiceException extends RuntimeException {

    private final ErrorResult error;


    public ServiceException(ErrorResult error) {
        super(error.getMessage());
        this.error = error;
    }

    public ErrorResult getError() {
        return error;
    }
}
